(ns tala.test.util
  (:use tala.util)
  (:use clojure.test))

(deftest simple-accept-string
  (is (= ["text/html"]
         (into []
               (parse-accept-header "text/html;q=1, foo/bar")))))
(deftest empty-accept-string
  (is (not (parse-accept-header ""))))
(deftest null-accept-string
  (is (not (parse-accept-header nil))))
